import Base from '../../base'
import view from '../../views/selectRole/selectRole.json'

export default class SelectRole extends Base {

	constructor(scene) {
		super(scene, view)

		this.roleData = {
			left: {
				name: '牛哥',
				level: 100,
				job: 'warrior',
				sex: 'man',
				checked: true
			},
			right: {
				name: '牛妹',
				level: 30,
				job: 'taois',
				sex: 'woman',
				checked: false
			}
		}
	}

	create() {

	}

	enterGame(){
		this.scene.scene.start('GameScene')
	}

	selectRole(obj){
		console.log(obj)
	}

	crateRole(){
		this.scene.crateRoleModule.show()
	}

	retorn(){
		this.scene.scene.start('LoginScene')
	}
}